package edu.friday.service;

import edu.friday.model.SysRole;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Set;

public interface SysRoleService {
    List<SysRole> selectRoleList();

    List<SysRole> selectRoleAll();
    List<Long> selectRoleListByUserId(Long userId);

    @Transactional
    int deleteRoleByIds(Long[] roleIds);

    // 本次新增
    Set<String> selectRolePermissionByUserId(Long userId);

}
